package com.java.thread.demo.chapter1.yield;

import com.java.thread.demo.chapter1.interrupt.MyThread;
import com.java.thread.demo.chapter1.sleep.MyThreadRun;

/**
 * Created by yiyongyao on 2017/12/19.
 *
 * 优先级 ...setPriority(1-10)
 *
 * 优先级越大 执行越优先, 相对而言, 优先而已
 *
 * 不保证每次都是优先
 *
 */
public class TestMain {

    public static void main(String[] args) {
        MyThreadRun thread = new MyThreadRun();
        thread.setPriority(1);
        thread.start();
    }

}
